﻿using Shop.Model.DB;
using Shop.RemoteModel.SpecGroupTemplate.Model;

namespace Shop.Collect
{
    public interface ISpecGroupTemplateCollect
    {
        Result Get<Result> (long id) where Result : class;
        DBSpecGroupTemplate Get (long id);
        bool Set (DBSpecGroupTemplate source, SpecGroupTSet set);
        long Add (SpecGroupTSet add);
        Result[] Gets<Result> (long categoryId) where Result : class, new();
        Result[] GetEnables<Result> (long categoryId) where Result : class, new();
        void SetIsEnable (DBSpecGroupTemplate source, bool isEnable);
        void Delete (DBSpecGroupTemplate source);
        Dictionary<long, int> SetSort (DBSpecGroupTemplate template, int sort);
    }
}